package com.neusoft.service;

import java.util.List;

//import com.neusoft.po.Orders;
import com.neusoft.po.VirtualWallet;
import com.neusoft.po.VirtualWalletTransaction;

public interface VirtualWalletService {
	public int saveWallet(String userId);
	
	public int recharge(Integer walletId, String userId, Double addAmount);
	
	public int payment(Integer orderId, Integer walletId, String userId, Double paymentAmount);
	
	public Double getBalanceByUserId(String userId);

	//public VirtualWalletTransaction getTransaction(Integer transactionId);	
	
	public int withdraw(Integer walletId, String userId, Double withdrawAmount);
	
	public VirtualWallet getWalletByUserId(String userId);
	
	public List<VirtualWalletTransaction> getTransaction(Integer walletId);
	
//	public int saveTransaction(VirtualWalletTransaction v);
	
}
